package com.jzo2o.health.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.health.model.domain.OrdersRefund;
import com.jzo2o.health.model.dto.request.OrdersCancelReqDTO;

import java.util.List;

/**
 * 订单退款相关业务层
 * @author JIAN
 */
public interface IOrderRefundService extends IService<OrdersRefund> {
    /**
     * 用户订单退款
     */
    void refundOrder(OrdersCancelReqDTO ordersCancelReqDTO);

    /**
     * 调用API退款(内部使用)
     */
    void refundOrder(OrdersRefund ordersRefund);

    /**
     * 获取最新的订单退款信息
     * @param count 处理数量
     */
    List<OrdersRefund> getLatestRefundInfo(Integer count);
}